package firstStage.part8;

/**
 * @ClassName: [StudentDemo]
 * @Description: 学生测试类
 * @Author: [黄劲松]
 * @CreateDate: [2021-02-06]
 * @Version: [v1.0]
 */
public class StudentDemo {
    public static void main(String[] args) {

        //创建对象,使用构造方法
        Student s = new Student();
        s.show();

        Student s1 = new Student("周翡");
        s1.show();

        Student s2 = new Student(30);
        s2.show();

        Student s3 = new Student("周翡", 30);
        s3.show();
    }
}
